//
//  UniPartyParser.h
//  RegBars
//
//  Created by Huu Nhat on 9/26/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Party.h"

@protocol UniPartyParserDelegate <NSObject>
- (void)didEndGetParty:(NSMutableArray *)Array;
@end

@interface UniPartyParser : NSObject <NSXMLParserDelegate>{
	Party *currentParty;
	NSObject <UniPartyParserDelegate>* delegate;
	NSMutableString *currentString;
	NSMutableArray *partyArray;
	NSMutableData *responseData;
}

@property (nonatomic, retain) Party *currentParty;
@property (nonatomic, assign) NSObject <UniPartyParserDelegate>* delegate;
@property (nonatomic, retain) NSMutableString *currentString;
@property (nonatomic, retain) NSMutableArray *partyArray;

- (void) getPartysFromURL:(NSString*) URL withDelegate:(id) theDelegate;

@end
